import path from 'path'
import ts from 'rollup-plugin-typescript2'
import {nodeResolve} from "@rollup/plugin-node-resolve";

export default {
  input: './utils/promise.ts',
  output: {
    exports: 'auto',
    format: 'cjs',
    dir: './build'
  },
  plugins: [
    ts({
      tsconfig: path.resolve('tsconfig.json')
    }),
    nodeResolve({
      extensions: ['.js', '.ts']
    })
  ]
}